/**
 * 
 */
package com.cqan.tuan.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.LongEntity;

/**
 * 城市实体 城市名称（城市名称不需要附带省、市、区、县等字，如果是全国范围请指明：全国）
 * @author slaton
 * 
 * 2012-12-1上午11:23:06 created
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "TBL_CITY")
//默认的缓存策略.
@SuppressWarnings("serial")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class City extends LongEntity implements BaseEntity{

	//城市拼音
	private String pinyin;
	
	//城市名称
	private String name;
	
	//城市时区
	private String timezone;
	
	//时区格林尼治标准时间的偏移
	private String timezoneOffsetGmt;
	
	//纬度
	private String latitude;
	
	//经度
	private String longitude;

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTimezone() {
		return timezone;
	}

	public void setTimezone(String timezone) {
		this.timezone = timezone;
	}

	public String getTimezoneOffsetGmt() {
		return timezoneOffsetGmt;
	}

	public void setTimezoneOffsetGmt(String timezoneOffsetGmt) {
		this.timezoneOffsetGmt = timezoneOffsetGmt;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}


	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	
}
